package org.medicalinstrument.dao;

import org.medicalinstrument.bean.RentOrderDetail;
import org.medicalinstrument.bean.RentOrderVo;
import org.medicalinstrument.bean.SearchOption;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface RentOrderDetailDao {
    //添加到订单项
    boolean add(Connection conn, RentOrderDetail orderDetail) throws SQLException;
    //通过用户获取订单信息
    public List<RentOrderVo> getByAccountNo(String accountNo) throws SQLException;
    //修改支付押金时间
    public Boolean updateRentMoneyTime(RentOrderDetail detail) throws SQLException;
    //添加归还信息
    public Boolean updateRuturnMessage(Connection conn, RentOrderDetail detail) throws SQLException;
    //修改订单状态
    public Boolean updateOrderState(Connection conn, RentOrderDetail detail) throws SQLException;
    //后台管理员查询订单详情
    List<RentOrderVo> getByRentOrderId(String rentOrderId) throws SQLException;
    //后台管理员的条件查询
    List<RentOrderVo> getByOption(SearchOption searchOption) throws SQLException;
    //修改订单状态
    public Boolean updateOrderStates(RentOrderDetail detail) throws SQLException;
}
